package pingji.dao.query.impl;

import lombok.extern.java.Log;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import pingji.dao.mapper.OrderMapper;
import pingji.dao.query.QueryOrderDao;
import pingji.pojo.QueryOrderListObject;

import java.util.List;
@Repository
@Log
public class QueryOrderDaoImpl implements QueryOrderDao {
    @Autowired
    OrderMapper mapper;
    @Override
    public List<QueryOrderListObject> queryByUserId(Integer id) {
        System.out.println(id);
        System.out.println(mapper);
        return mapper.selectByUserId(id);
    }

    @Override
    public List<QueryOrderListObject> queryAllOrder(Integer id) {
        return mapper.selectAllOrder(id);
    }
}
